import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class test9 {

	
	public static void main(String[] args) {
		String BookName=null;
		int location=5;
		book name[]= new book[location];
		System.out.println("Enter the book name");
		BufferedReader brObj= new BufferedReader(new InputStreamReader(System.in));
		try {
			int i = 0;
			for(i=0;i<5;i++)
			{
			name[i]=new book();
			name[i].setBookName(brObj.readLine());
			System.out.println("Book added to successfully:"+i);
			}			
				System.out.println("Maximum Capcity reached");
			
			} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		location++;
		return ;
	}
	}

